"use strict";

let glob = require('glob-all');

module.exports = {
    context: __dirname,

    entry: glob.sync([
        "./scripts/index.jsx",
        "./index.html"
    ]),
    output: {
        path: __dirname + "/dist",
        filename: "index.js"
    },
    module: {
        loaders: [{
            test: /\.jsx$/, loader: 'babel', query: {presets: ['react', 'es2015']}
        }, {
            test: /\.html$/, loader: 'file?name=[path][name].[ext]'
        }]
    }
};
